package com.wxc.api.admin.service;

import com.wxc.api.admin.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wxc.common.common.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author baomidou
 * @since 2022-04-14
 */
public interface ISysUserService extends IService<SysUser> {

    SysUser login(String account, String password);

    Result login2(String account, String password);

    Result logout(HttpServletRequest request);

    Integer add(String account,String userName,String password);

    SysUser info();

    Integer del(Integer id);

    Integer enabled(Integer id, boolean enabled);

    void setLoginTime();

    Integer setPassword(String password);

    Integer setUserPassword(Integer id, String password);
}
